import {_http} from '@/axios/http';
import path from '@/axios/path';

const state = {};

const getters = {};

const actions = {
    //admin
    getRiskTemplate({commit}, data) {
        return _http(`${path.risktemplateRecords}`, data)
            .then(res => {return res})
            .catch(err => {return err})
    },
    createRiskTemplate({commit}, data) {
        return _http(`${path.risktemplateCreate}`, data)
            .then(res => {return res})
            .catch(err => {return err})
    },
    updateRiskTemplate({commit}, data) {
        return _http(`${path.risktemplateUpdate}`, data)
            .then(res => {return res})
            .catch(err => {return err})
    },
}
const mutations = {

};
export default {
    state,
    getters,
    mutations,
    actions
}